package com.bawei.a2010douyin.ui.zhibo;

import android.widget.ImageView;

import com.bawei.a2010douyin.R;
import com.bawei.a2010douyin.base.utils.GlideUtils;
import com.bawei.a2010douyin.entity.GiftEntity;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.loadmore.BaseLoadMoreView;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;

import androidx.annotation.NonNull;

public class GiftAdapter extends BaseQuickAdapter<GiftEntity, BaseViewHolder> {
    public GiftAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, GiftEntity giftEntity) {
        ImageView imageView = baseViewHolder.getView(R.id.iv);
        GlideUtils.getInstance().loadImage(getContext(),giftEntity.getGiftpath(),imageView);
        baseViewHolder.setText(R.id.tv,giftEntity.getGiftname());
    }
}
